﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace Cow.Module
{
    /// <summary>
    /// Excel设计书的信息
    /// </summary>
    public class Design
    {
        public String OutputPath { get; set; }
        public String NameSpace { get; set; }
        public String ModuleName { get; set; }

        private Collection<Definition> definitionInfo = new Collection<Definition>();
        [SheetInfo(SheetIndex = 0, Description = "类型定义")]
        public Collection<Definition> DefinitionInfo
        {
            get { return definitionInfo; }
        }

        private Collection<DataType> dataTypeInfo = new Collection<DataType>();
        [SheetInfo(SheetIndex = 1, Description = "类型定义")]
        public Collection<DataType> DataTypeInfo
        {
            get { return dataTypeInfo; }
        }

        private Collection<Kit> kitInfo = new Collection<Kit>();
        [SheetInfo(SheetIndex = 3, Description = "Controls")]
        public Collection<Kit> KitInfo
        {
            get { return kitInfo; }
        }

        private Collection<Regexp> regexpInfo = new Collection<Regexp>();
        [SheetInfo(SheetIndex = 2, Description = "Regexp")]
        public Collection<Regexp> RegexpInfo
        {
            get { return regexpInfo; }
        }

        private Collection<Search> searchInfo = new Collection<Search>();
        public Collection<Search> SearchInfo
        {
            get { return searchInfo; }
        }
    }
}
